<div class="grid_15" id="newStyles">
<?php
	if ('' != trim($this->msg)) {?>
	<div  class="helperText"><?php print($this->msg); ?></div>
<?php } ?>

	<div class="cancelNavigation"> [ <a href="<?php print( $this->returnUrl ? $this->returnUrl : "index.php?cmd=addReserve"); ?>">Return</a> ] </div>

	<div class="grid_13"><div class="grid_13 bordered appOptions shadowed_near">
		<h3>Current Estimates</h3>
		<table class="dataTable" >
			<tr>
				<th>Status</th>
				<th>Recent Average</th>
				<th>Average</th>
			</tr>
		<?php foreach($this->statuses as $status) { 
			$statusId = $status->getId();
			if (
				$status->isEnabled() && 
				$statusId != Rd_Request_Status::getActiveStatusId()&& 
				$statusId != Rd_Request_Status::getInactiveStatusId()&& 
				$statusId != Rd_Request_Status::getDeniedStatusId()
			) {
				$allEstimateData = $status->getTimeEstimate('99 years');
				$recentEstimateData = $status->getTimeEstimate();
				?>
			<tr>
				<th><?php print($status->getStaffLabel()); ?></th>
				<td><?php print("{$recentEstimateData['min']}-{$recentEstimateData['max']} days ({$recentEstimateData['count']} items)"); ?></td>
				<td><?php print("{$allEstimateData['min']}-{$allEstimateData['max']} days ({$allEstimateData['count']} items)"); ?></td>
			</tr>
		<?php } 
			} ?>
		</table>
	</div></div>
	<?php //#TODO add edit item options.
	
	?>
</div>